import request from './request';

export const useGet = (url: string, params?: any) => {
  return request.get(url, { params });
};

export const usePost = (url: string, data?: any) => {
  return request.post(url, data);
};

export const usePut = (url: string, data?: any) => {
  return request.put(url, data);
};

export const useDelete = (url: string, params?: any) => {
  return request.delete(url, { params });
};
